package cn.stylefeng.guns.dao;

import cn.stylefeng.guns.dao.entity.ReportDto;
import cn.stylefeng.guns.dao.entity.SaleStock;
import cn.stylefeng.guns.dao.entity.Supplier;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author quspacedraon
 * @since 2024-01-13
 */
public interface ISaleStockService extends IService<SaleStock> {
    Boolean isExist(String batchNo, String goodsId);

    List<ReportDto> sumTotal(Long startTime, Long endTime, String supplierId, String goodsId, List<String> saleStockIdList);

    Map<String, Double> sumTotalPrice(Long startTime, Long endTime, List<String> supplierIdList);

}
